Platform Explorer / Nuxeo Platform 2021.54

Component org.nuxeo.ecm.platform.routing.dashboard.actions

Documentation

Main workflow tab, and sample sub tab, disabled by default.

To enable them, add the following contribution:

    <require>org.nuxeo.ecm.platform.routing.dashboard.actions
      </require>
    <extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">
        <action enabled="true" id="workflow_dashboard"/>
        <action enabled="true" id="routing_tasks"/>
    </extension>

Resolution Order

763
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.routing.dashboard.actions">

  <documentation>
    Main workflow tab, and sample sub tab, disabled by default.
    <p>
      To enable them, add the following contribution:
    </p>
    <code>
      <require>org.nuxeo.ecm.platform.routing.dashboard.actions
      </require>
      <extension target="org.nuxeo.ecm.platform.actions.ActionService"
        point="actions">
        <action id="workflow_dashboard" enabled="true" />
        <action id="routing_tasks" enabled="true" />
      </extension>
    </code>
  </documentation>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <action id="workflow_dashboard" link="view_workflow" label="label.main.tab.workflow"
      order="30" enabled="false" type="main_tab">
      <category>MAIN_TABS</category>
    </action>

    <action id="routing_tasks" link="/incl/tabs/workflow_dashboard_tab.xhtml"
      label="action.view.workflow.tasks" order="10" enabled="false">
      <category>WORKFLOW_DASHBOARD</category>
    </action>

    <!--since 5.7.3 -->
    <action id="WorkflowHome" link="/view_home_task.xhtml" label="tab.admin.workflow"
      order="20" icon="/icons/workflow_definition.png">
      <properties>
        <property name="alwaysDisplaySubTabs">false</property>
      </properties>
      <category>USER_CENTER</category>
      <filter-id>not_anonymous</filter-id>
    </action>

    <!--since 5.7.3 -->
    <action id="UsersTasks" label="title.dashboard.userTasks" link="/incl/home/user_open_tasks.xhtml"
      order="40">
      <category>WorkflowHome_sub_tab</category>
      <filter-id>not_readonly</filter-id>
    </action>

    <action id="go_back_to_tasks_view" link="#{routingTaskActions.navigateToTasksView()}"
      order="10" label="command.back">
      <category>TASK_ADDITIONAL_ACTIONS</category>
    </action>

  </extension>

  <extension target="org.nuxeo.ecm.platform.forms.layout.LayoutStore"
    point="widgettypes">

    <widgetType name="workflow_rest_document_link">
      <categories>
        <category>jsfAction</category>
      </categories>
      <configuration>
        <sinceVersion>7.2</sinceVersion>
        <title>Document workflow Rest Link</title>
        <description>
          Widget displaying a restful document link for an action
          (typically a tab link). Useful for workflow tabs migration to tabs
          widget, to apply compatibility changes on existing actions.
        </description>
        <categories>
          <category>action</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <properties>
          <defaultValues mode="any">
            <property name="repositoryName">#{currentServerLocation.name}</property>
            <property name="discardSurroundingForm">true</property>
            <property name="disableMultiPartForm">true</property>
            <property name="supportAjax">#{canUseAjaxTabs}</property>
            <property name="view">view_workflow</property>
          </defaultValues>
          <layouts mode="view">
            <layout name="rest_document_link_action_widget_type_properties_view">
              <rows>
                <row>
                  <widget category="actionWidgetTypeConf">label</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">icon</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">ajaxSupport</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">onclick</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">target</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">confirm</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">confirmMessage</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">confirmMessageArgs</widget>
                </row>
                <row>
                  <widget category="actionWidgetTypeConf">rest_document_link_view</widget>
                </row>
              </rows>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /incl/action/rest_document_link_action_template.xhtml
      </property>
      <property name="dev_template">
        /widgets/actions/dev/action_widget_type_dev_template.xhtml
      </property>
    </widgetType>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="typeCompatibility">

    <typeCompatibility type="workflow_rest_document_link">
      <category>WORKFLOW_DASHBOARD</category>
    </typeCompatibility>

  </extension>

</component>